package com.zls.dubbo.service.impl;

import com.zls.dubbo.service.DeviceService;
import org.apache.dubbo.config.annotation.Service;

@Service(timeout = 2000) //注入到注册中心  spring容器
public class DeviceServiceImpl implements DeviceService {
    @Override
    public String showDevice(Integer id) {
        try {
            Thread.sleep(2500);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("进入DeviceServiceImpl.........");
        return "device---"+id;
    }
}
